<template>
    <h1>{{ "parent" }}</h1>
    <child>
        <template #aaa>
            <p>aaa</p>
        </template>
        <template #child="{ user }">
            <p>用户名：{{ user.name }}</p>
        </template>
        <template v-slot="{ info }">
            <p>年龄：{{ info.age }}</p>
        </template>
    </child>
</template>

<script setup lang="ts">
import child from "./child.vue";
</script>

<style scoped></style>
